package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperWebNotice implements Serializable {
    private Integer id;

    private String title;

    private String body;

    private Date indate;

    private String phone;

    /**
     * 网点id
     */
    private Integer branchId;

    /**
     * 1居委会  2物业  3居民  0全部
     */
    private Integer type;

    /**
     * app 上传的图片路径
     */
    private String appImgPath;

    /**
     * 0-未审核；1-未通过；2-通过
     */
    private Integer flag;

    /**
     * 0-不提醒；1-提醒
     */
    private Integer isRemind;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 网点id
     */
    public Integer getBranchId() {
        return branchId;
    }

    /**
     * 网点id
     */
    public void setBranchId(Integer branchId) {
        this.branchId = branchId;
    }

    /**
     * 1居委会  2物业  3居民  0全部
     */
    public Integer getType() {
        return type;
    }

    /**
     * 1居委会  2物业  3居民  0全部
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * app 上传的图片路径
     */
    public String getAppImgPath() {
        return appImgPath;
    }

    /**
     * app 上传的图片路径
     */
    public void setAppImgPath(String appImgPath) {
        this.appImgPath = appImgPath;
    }

    /**
     * 0-未审核；1-未通过；2-通过
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * 0-未审核；1-未通过；2-通过
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    /**
     * 0-不提醒；1-提醒
     */
    public Integer getIsRemind() {
        return isRemind;
    }

    /**
     * 0-不提醒；1-提醒
     */
    public void setIsRemind(Integer isRemind) {
        this.isRemind = isRemind;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", body=").append(body);
        sb.append(", indate=").append(indate);
        sb.append(", phone=").append(phone);
        sb.append(", branchId=").append(branchId);
        sb.append(", type=").append(type);
        sb.append(", appImgPath=").append(appImgPath);
        sb.append(", flag=").append(flag);
        sb.append(", isRemind=").append(isRemind);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebNotice other = (SuperWebNotice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getBody() == null ? other.getBody() == null : this.getBody().equals(other.getBody()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getBranchId() == null ? other.getBranchId() == null : this.getBranchId().equals(other.getBranchId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getAppImgPath() == null ? other.getAppImgPath() == null : this.getAppImgPath().equals(other.getAppImgPath()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getIsRemind() == null ? other.getIsRemind() == null : this.getIsRemind().equals(other.getIsRemind()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getBody() == null) ? 0 : getBody().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getBranchId() == null) ? 0 : getBranchId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAppImgPath() == null) ? 0 : getAppImgPath().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getIsRemind() == null) ? 0 : getIsRemind().hashCode());
        return result;
    }
}